package com.ruoyi.cems.service;

import com.ruoyi.cems.domain.BmsEmergencyNotice;
import com.ruoyi.common.core.domain.AjaxResult;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 应急通知Service接口
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
public interface IBmsEmergencyNoticeService 
{
    /**
     * 查询应急通知
     * 
     * @param ID 应急通知主键
     * @return 应急通知
     */
    public BmsEmergencyNotice selectBmsEmergencyNoticeByID(String ID);

    /**
     * 查询应急通知列表
     * 
     * @param bmsEmergencyNotice 应急通知
     * @return 应急通知集合
     */
    public List<BmsEmergencyNotice> selectBmsEmergencyNoticeList(BmsEmergencyNotice bmsEmergencyNotice);

    /**
     * 新增应急通知
     * 
     * @param bmsEmergencyNotice 应急通知
     * @return 结果
     */
    public int insertBmsEmergencyNotice(BmsEmergencyNotice bmsEmergencyNotice);

    AjaxResult start(BmsEmergencyNotice bmsEmergencyNotice,String userId);

    void syncCallResult();

    int close(BmsEmergencyNotice bmsEmergencyNotice);

    /**
     * 修改应急通知
     * 
     * @param bmsEmergencyNotice 应急通知
     * @return 结果
     */
    public int updateBmsEmergencyNotice(BmsEmergencyNotice bmsEmergencyNotice);

    /**
     * 批量删除应急通知
     * 
     * @param IDs 需要删除的应急通知主键集合
     * @return 结果
     */
    public int deleteBmsEmergencyNoticeByIDs(String[] IDs);

    /**
     * 删除应急通知信息
     * 
     * @param ID 应急通知主键
     * @return 结果
     */
    public int deleteBmsEmergencyNoticeByID(String ID);

    /**
     * 查询业务数据数量
     * @param start_time
     * @param end_time
     * @return
     */
    public int selectBmsEmergencyNotice(@Param("start_time") String start_time, @Param("end_time") String end_time);

    /**
     * 更新应急通知状态
     */
    public int updateBmsEmergencyNoticeStatus();
}
